package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.Organization;

import java.util.List;

/**
 * Created by elvisxiong on 7/8/15.
 */
public interface OrganizationRdbService {

    /**
     * 获取fbaccount所在的公司， 多个公司返回列表。 不判断权限
     *
     * @param fbAccountId
     * @return
     */
    List<Organization> getOrganizationByFbAccountId(Long fbAccountId);

    Long save(Organization organization);

    Organization findById(Long id);

    void modify(Organization organization);
}
